package org.lost.design.factory.abstracts;

import org.lost.design.factory.CheesePizza;
import org.lost.design.factory.ClamPizza;
import org.lost.design.factory.Pizza;
import org.lost.design.factory.PizzaType;

public class NYPizzaStore extends PizzaStore {
    
    @Override
    Pizza createPizza(PizzaType type) {
        Pizza pizza = null;
        PizzaIngredientFactory ingredientFactory = new NYPizzaIngredientFactory();
        switch (type) {
            case Chessse:
                pizza = new CheesePizza(ingredientFactory);
                break;
            case Clam:
                pizza = new ClamPizza(ingredientFactory);
            default:
                break;
        }
        return pizza;
    }
    
}
